﻿<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" assembly="NHibernateDemo.DAL" namespace="NHibernateDemo.DAL.Entity">
    <class name="NHibernateDemo.DAL.Entity.ver2.ShareClassBasic" table ="ShareClassBasic" >
        <id name="ShareKey" column="ShareKey" type="string" length="10" >
            <generator class="assigned" ></generator>
        </id>
        <property name="OldKey" type="string" column="OldKey" length="10"></property>
        <property name="Status" type="int" column="Status" />
        <property name="ShareClassName" type="string" column="ShareName" />
        <many-to-one  name="Fund" class="NHibernateDemo.DAL.Entity.ver2.FundBasic2" column="FundKey" />
        <many-to-one name="Type" class="NHibernateDemo.DAL.Entity.ver2.ShareClassType" column="ShareClassTypeId" />
    </class>
    <class name="NHibernateDemo.DAL.Entity.ver2.ShareClassType" table="ShareClassType">
        <id name="Id" column="ShareClassTypeId" type="int" >
            <generator class="assigned" ></generator>
        </id>
        <property name="Description" type="string" column="Description" ></property>
    </class>
</hibernate-mapping>